package com.ibm.cognos.imt.fm

/**
 * Created by eric on 8/29/2014.
 */
class XMLReportParser {
    String getListResult(String xml) {
//        xml = new File("C:\\Users\\IBM_ADMIN\\Desktop\\CognosMocha\\simple_list_xml_output.xml").text
        XmlSlurper slurper = new XmlSlurper()
        def root = slurper.parseText(xml)
        def result = root.data[0].row[0].value[0].text()
        println(result)
        return result
    }

    public static void main(String[] args) {
        new XMLReportParser().getListResult("")
    }
}
